package com.star.mall.persistence.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.star.mall.base.model.BaseModel;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 角色权限表 
 * </p>
 *
 * @author StarQ
 * @since 2021-05-02
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("uc_role_auth")
@ApiModel(value="RoleAuth对象", description="角色权限表")
public class RoleAuth extends BaseModel {

    private static final long serialVersionUID = 1L;

    //菜单
    public static final int MENU = 1;
    //接口
    public static final int API = 2;

    @ApiModelProperty(value = "角色别名")
    @TableField("AUTH_KEY_")
    private String authKey;

    @ApiModelProperty(value = "角色主键")
    @TableField("ROLE_ID_")
    private String roleId;

    @ApiModelProperty(value = "类型 1位菜单 2为接口")
    @TableField("TYPE_")
    private Integer type;

}
